package com.bub.pay.framework.common.base;

/**
 * 定义异常原因
 */
public enum Cause {
    unlogin(101, "当前用户未登录"),
    no_auth(103,"无访问权限"),
    no_auth_merchant(104,"商户状态异常，暂无权限操作"),
    agent_mer_email_params_fail(1034,"邮件格式不正确"),
    error_login(3001, "用户名或密码错误"),
    error_login_token(3002, "身份失效请重新登陆"),
    error_login_secondlogin(3003, "您的账户在其他地方登陆,请重新登陆"),
    error_login_noauth(3004, "请求非法，请重新登陆"),
    error_login_needgoolge(3005, "请输入谷歌验证码"),
    error_login_iperror(3006, "当前IP不是绑定的IP地址，请联系管理员处理"),
    error_login_del(3007, "您的账号已经禁用，请联系管理员处理"),
    error_login_lock(3012, "您的账号已经被锁定，请联系管理员处理"),
    error_google_secret_exprice(3100, "谷歌授权码已经过期，请重新获取"),
    error_google_secret_bind(3101, "您已经绑定谷歌验证器"),
    error_google_secret_code(3102, "谷歌验证码错误"),
    error_google_secret_remove(3103, "您已经绑定谷歌验证器"),
    error_auth_reset(3301, "请修改登陆密码"),
    error_auth_binGoogle(3302, "请绑定谷歌验证码"),
    error_auth_binPayPass(3303, "请设置支付密码"),
    error_password_auth(3200, "子账户与主账户不匹配"),
    error_password_noauth(3202, "无操作权限"),
    error_password_old(3201, "原密码不正确"),
    error_password_pay(3203, "支付密码不正确"),
    error_recharge_amount(3402, "充值金额不正确"),
    admin_add_user_fail(608,"添加员工失败"),
    admin_add_user_role_fail(609,"添加员工角色失败"),
    admin_add_user_roleid_err(610,"添加用户角色不存在"),
    admin_add_user_username_err(611,"用户名必须以字母开头2-6位数字字母'_'"),
    admin_add_user_nickname_err(612,"昵称应为2-10位字母数字中文"),
    admin_update_user_id_not_presence_err(613,"用户不存在!"),
    admin_update_user_id_err(613,"用户Id不能为空!"),
    admin_update_user_fail(614,"修改用户失败!"),
    admin_add_role_name_params_error(619,"角色长度应为2-100位且只包含汉字英文字母数字"),
    admin_add_role_fail(622,"添加角色失败!"),
    admin_add_role_menu_fail(623,"添加角色权限失败!"),
    admin_add_role_name_error(624,"角色名称不能重复!"),
    admin_update_role_id_presence_error(624,"角色ID不能为空!"),
    admin_update_role_id_not_presence_error(625,"角色不存在!"),
    admin_delte_role_error(628,"角色Id不能为空!"),
    admin_delte_role_not_presence_error(629,"角色不存在!"),
    admin_delte_role_fail(629,"角色删除失败!"),
    admin_add_menu_platformtype_param_error(634,"请求参数平台标识不正确!"),
    admin_add_menu_name_param_error(635,"菜单权限名称应为2-100位中文数组下划线字母!"),
    admin_add_menu_fail(638,"权限添加失败!"),
    admin_update_menu_id_not_platformtype_error(639,"权限ID不能为空!"),
    admin_update_menu_not_perm_error(640,"指定权限不存在!"),
    admin_update_user_state_error(647,"指定状态不正确!"),
    admin_user_update_ip_param_error(657,"IP格式不正确!"),
	can_not_delete_sys_role(662,"无法删除系统角色"),
    admin_add_user_username_exsits(665,"用户名已经存在"),
    twicePassword(111,"两次登录密码输入不一致"),
    CanNotOperate(113,"主账号无法操作"),
    duplicateData(119,"数据已存在"),
    channel_match_fail(556,"没有匹配到可用的通道"),
    mer_order_to_success_lock_error(2042, "请重试"),
    update_user_password_is_incorrect(8000,"当前密码不正确"),
    update_user_password_new_and_repeat_pwd_is_null(8001,"新密码和重复密码不能为空"),
    update_user_password_new_and_repeat_pwd_is_not_same(8002,"新密码和重复密码不一致"),
    update_user_password_email_fail(8003,"修改失败"),
    update_user_email_and_email_code_is_null(8004,"新邮箱和邮箱验证码不能为空"),
    update_user_email_and_email_code_is_expired(8005,"邮箱验证码过期"),
    update_user_email_and_email_code_is_error(8006,"邮箱验证码不正确"),
    update_sys_kv_pair_fail(8007,"系统参数修改失败"),
    update_user_name_is_null(8008,"姓名不能为空"),
    update_contact_information_does_not_exist(8009,"指定联系方式不存在"),
    update_sys_kv_pair_key_not_exist(8008,"系统参数ID不存在"),

    /*系统保留*/
    operat_fail(997,"操作失败"),
    params_fail(998,"请求参数错误"),
    unknown(999, "系统繁忙,稍后再试"),
    googlecode_error(998,"谷歌验证码错误!");
    private Integer code;
    private String info;

    Cause(Integer code, String info) {
        this.code = code;
        this.info = info;
    }

    public Integer getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
